import animalmanage.Animal;
import animalmanage.AnimalArea;
import animalmanage.Mammal;

public class Main {
    public static void main(String[] args) {
        AnimalArea MammalArea = new AnimalArea();

        Mammal Mammal1 = new Mammal("金丝猴", 30);
        Mammal Mammal2 = new Mammal("狐狸", 20, "犬科狐属园区");
        Mammal Mammal3 = new Mammal("大熊猫", "熊科园区");
        Mammal Mammal4 = new Mammal("狼");
        Mammal Mammal6 = new Mammal("金丝猴", 3);
        //添加动物
        MammalArea.addAnimal(Mammal1);
        MammalArea.addAnimal(Mammal2);
        //不指明动物添加的数量下，默认添加了一只
        MammalArea.addAnimal(Mammal4);
        System.out.println("显示当前动物园所有信息");
        System.out.println(MammalArea.displayAllAnimal());
        System.out.println("====================================");
        //添加相同名称的动物
        MammalArea.addAnimal(Mammal6);
        System.out.println(MammalArea.displayAllAnimal());
        System.out.println("====================================");
        //不指明删除的数量，默认删除一只
        MammalArea.deleteAnimal("金丝猴");
        System.out.println(MammalArea.displayAllAnimal());
        System.out.println("====================================");
        MammalArea.deleteAnimal("狼");
        System.out.println(MammalArea.displayAllAnimal());
        System.out.println("====================================");
        //删除指定数量的动物
        MammalArea.deleteAnimal("狐狸", 10);
        System.out.println(MammalArea.displayAllAnimal());
        System.out.println("====================================");
        MammalArea.deleteAnimal("狐狸", 10);
        System.out.println(MammalArea.displayAllAnimal());
        //显示动物在哪个园区
        System.out.println("====================================");
        Mammal1.location();
        Mammal2.location();
        Mammal3.location();
        System.out.println("====================================");
        Mammal1.Behavior();
        Mammal2.Behavior();
    }
}
